package com.spider.thisdemo;

public class Test {
    //目标：认识this关键字
    //this主要用来解决变量名称冲突的问题
    public static void main(String[] args) {
        Student s1 = new Student();
//        s1.print1();
//        System.out.println(s1);
        Student s2 = new Student("诗白灯");
        s2.printHobby("玩MC");
    }
}
